
import NotFound from "@/views/NotFound";
import Intercept from "./Intercept";
import Layout from "@/layout";
import { RouteObject } from "react-router-dom";
import Login from "@/views/login/Login";
export const LoginPath = "/login";
export const resetPath = "/resetpwd";
export const routes: RouteObject[] = [
  {
    path: "/",
    element: (
      <Intercept>
        <Layout />
      </Intercept>
    ),
    children: [{ path: "*", element: <NotFound /> }],
  },
  {
    path: LoginPath,
    element: (
      <Intercept>
        <Login />
      </Intercept>
    ),
  },
];
